import {isProxy, toRaw} from 'vue';
export const useUpdateNodeData = (node:any,id:string,type:string,data:any)=>{
    let RawNode;
    if(node.node){
        if(isProxy(node.node)){
            RawNode = toRaw(node.node)
        }else{
            RawNode = node.node
        }
        RawNode.data = {
            id,
            type,
            ...data
        }
    }
}